<%- include ../inc/header.html %>
<div class="container">
    <h1><%= settings.title %></h1>
    <p>Hi，<%=userName%>，欢迎使用<%= settings.title %>!</p>
    <p class="text-right"><a href="/upload">上传照片</a> | <a href="/logout">登出</a></p>
    <div class="panel panel-default">
        <div class="panel-heading">
            <div class="panel-title"><%= title %></div>
        </div>
        <div class="panel-body">
            <div id="photos" class="row">
                <% photos.forEach(function(photo){ %>
                <div class="col-md-3">
                    <div class="thumbnail">
                        <img src="<%=photo.path%>">
                        <div class="caption">
                            <h4><%=photo.name%></h4>
                        </div>
                    </div>
                </div>
                <% })%>
            </div>
        </div>
    </div>

</div>
<%- include ../inc/footer.html %>
